package com.handinglian.ai.notice.service;

import com.handinglian.ai.notice.dto.ImportCensusDto;
import com.handinglian.ai.notice.entity.Mass;
import org.springframework.ui.ModelMap;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.util.Date;
import java.util.List;

public interface MassService {
    Integer countByNoticeId(Integer noticeId);

    ImportCensusDto importCensusExcel(ModelMap map, HttpServletRequest request, HttpServletResponse response, MultipartFile file, Integer noticeId, String noticeTime, Integer staff) throws Exception;

    List<Mass> list(Date noticeTime);

    int delete(Integer id);

    int deleteBatch(List<Integer> ids);
}
